package cn.tedu.carehome.foundation.mapper;

import cn.tedu.carehome.foundation.pojo.dto.TellCheckInfoUpdateDTO;
import cn.tedu.carehome.foundation.pojo.entity.TellCheckInfo;
import cn.tedu.carehome.foundation.pojo.vo.TellCheckInfoAllOlderAddInfoVo;
import cn.tedu.carehome.foundation.pojo.vo.TellCheckInfoListItemVO;
import cn.tedu.carehome.foundation.pojo.vo.TellCheckInfoStandardVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TellCheckInfoMapper {
    /**
     * 入住信息添加
     */
    void insert(TellCheckInfo tellcheckInfo);

    int deleteByid(Long id);

    int deleteBatchByids(Long[] ids);

    int update(TellCheckInfoUpdateDTO tellcheckInfoUpdateDTO);

    List<TellCheckInfoListItemVO> list(String content);

    List<TellCheckInfoListItemVO> listLimit(int page,int size,String Content);

    List<TellCheckInfoAllOlderAddInfoVo> listAllOlderInfo(String Content);

    TellCheckInfoStandardVo getStandarByid(Long id);

    int count(String Content);

    int countByOlderId(String olderId);

    int countByOlderIdNotId(Long id,Long olderId);

}
